<%--
  @author Duminda Dharmakeerthi
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:include value="./notifications.jsp"/>
<div id="search-module-home" class="module-home">
    <div class="page-title">
        <h2><s:label value="%{getText('search.label')}"/></h2>
    </div>
    <ul>
        <s:if test="#session.userGroup=='orlm' || #session.userGroup =='lo' || #session.userGroup =='ords'">
            <%--<li><s:a href="#"><img src="${pageContext.request.contextPath}/images/search_by_reference.png"><span><s:label--%>
            <%--value="%{getText('search_land_by_reference.label')}"/></span></s:a></li>--%>
            <li><s:a href="searchLands.do"><img
                    src="${pageContext.request.contextPath}/images/searchLand.png"><span><s:label
                    value="%{getText('search_lands.label')}"/></span></s:a></li>

            <li><s:a href="searchAllLands.do"><img
                    src="${pageContext.request.contextPath}/images/search-all-Lands.png"><span><s:label
                    value="%{getText('search_all_lands.label')}"/></span></s:a></li>

            <li><s:a href="searchDefineAmLands.do"><img
                    src="${pageContext.request.contextPath}/images/search-unalienatedLand.png"><span><s:label
                    value="%{getText('search_defineAM_lands.label')}"/></span></s:a></li>


            <li><s:a href="searchLandsByAlienationType.do"><img
                    src="${pageContext.request.contextPath}/images/search_alienation.png"><span><s:label
                    value="%{getText('search_lands_by_alienation.label')}"/></span></s:a></li>

            <li><s:a href="searchUnAlienatedLands.do"><img
                    src="${pageContext.request.contextPath}/images/search-unalienatedLand.png"><span><s:label
                    value="%{getText('search_unalienated_lands_.label')}"/></span></s:a></li>
            <li><s:a href="loadAlienationSearchPage.do"><img
                    src="${pageContext.request.contextPath}/images/search-unalienatedLand.png"><span><s:label
                    value="%{getText('search_alienation.label')}"/></span></s:a></li>

        </s:if>
        <s:if test="#session.userGroup =='ords'">
          <%--  <li><s:a href="searchLands.do"><img
                    src="${pageContext.request.contextPath}/images/searchLands.png"><span><s:label
                    value="%{getText('search_lands.label')}"/></span></s:a></li>
            <li><s:a href="searchLandsByAlienationType.do"><img
                    src="${pageContext.request.contextPath}/images/search-by-type.png"><span><s:label
                    value="%{getText('search_lands_by_alienation.label')}"/></span></s:a></li>

            <li><s:a href="searchUnAlienatedLands.do"><img
                    src="${pageContext.request.contextPath}/images/search.png"><span><s:label
                    value="%{getText('search_unalienated_lands_.label')}"/></span></s:a></li>--%>
            <li><s:a href="loadApplicationSearchPage.do"><img
                    src="${pageContext.request.contextPath}/images/search-apps.png"><span><s:label
                    value="%{getText('search_application.label')}"/></span></s:a></li>

            <%--<li><s:a href="searchSelectedApplicationList.do"><img
                    src="${pageContext.request.contextPath}/images/searchSelectedApps.png"><span><s:label
                    value="%{getText('search_application_by_alienation.label')}"/></span></s:a></li>--%>
            <li>
                <s:a href="initViewAssociationList.do">
                    <img src="${pageContext.request.contextPath}/images/search-associateLand.png" alt="Search Associated Lands With Alienation Methods">
                    <span><s:label value="%{getText('search_associate_lands_with_alienation_methods.label')}"/></span>
                </s:a>
            </li>
        </s:if>
        <s:if test="#session.userGroup =='lo'">
            <li><s:a href="loadApplicationSearchPage.do"><img
                    src="${pageContext.request.contextPath}/images/search-apps.png"><span><s:label
                    value="%{getText('search_application.label')}"/></span></s:a></li>
            <%--<li><s:a href="searchSelectedApplicationList.do"><img
                    src="${pageContext.request.contextPath}/images/searchSelectedApps.png"><span><s:label
                    value="%{getText('search_application_by_alienation.label')}"/></span></s:a></li>--%>
            <%--<li>
                <s:a href="initViewAssociationList.do">
                    <img src="${pageContext.request.contextPath}/images/search-associateLand.png" alt="Search Associated Lands With Alienation Methods">
                    <span><s:label value="%{getText('search_associate_lands_with_alienation_methods.label')}"/></span>
                </s:a>
            </li>--%>
        </s:if>
        <s:if test="#session.userGroup =='urmgoi'">
            <li>
                <s:a href="initSearchGOInterestInformation.do">
                    <img src="${pageContext.request.contextPath}/images/search.png" alt="Search GO Interest Information">
                    <span><s:label value="%{getText('search_go_interest_information.label')}"/></span>
                </s:a>
            </li>
        </s:if>
        <s:if test="#session.userGroup =='plc' || #session.userGroup=='lcg' || #session.userGroup=='orlp' || #session.userGroup=='orip'">
            <li>
                <s:a href="searchLandsUpperLevel.do"><img
                        src="${pageContext.request.contextPath}/images/searchLand.png"><span><s:label
                        value="%{getText('search_lands.label')}"/></span></s:a>
            </li>
            <li><s:a href="searchAllLandsUpperLevel.do"><img
                    src="${pageContext.request.contextPath}/images/search-all-Lands.png"><span><s:label
                    value="%{getText('search_all_lands.label')}"/></span></s:a></li>
            <li><s:a href="searchDefineAmLandsUpperLevel.do"><img
                    src="${pageContext.request.contextPath}/images/search-unalienatedLand.png"><span><s:label
                    value="%{getText('search_defineAM_lands.label')}"/></span></s:a></li>

            <li><s:a href="loadApplicationSearchPage.do"><img
                    src="${pageContext.request.contextPath}/images/search-apps.png"><span><s:label
                    value="%{getText('search_application.label')}"/></span></s:a></li>

            <li><s:a href="loadAlienationSearchPage.do"><img
                    src="${pageContext.request.contextPath}/images/search-unalienatedLand.png"><span><s:label
                    value="%{getText('search_alienation.label')}"/></span></s:a></li>


        </s:if>

        <s:if test="#session.userGroup=='sc' || #session.userGroup=='bo' || #session.userGroup=='sh' || #session.userGroup=='sdh' || #session.userGroup=='dh' ">
            <li><s:a href="approvedLands.do"><img src="${pageContext.request.contextPath}/images/searchLand.png"
                                                           alt="View Approved Land Information"><span><s:label
                                value="Approved Land Information"/></span></s:a></li>

                </s:if>

    </ul>
</div>